package org.tangdao.modules.file.service.impl;

import java.io.File;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.tangdao.common.service.impl.CrudServiceImpl;
import org.tangdao.modules.file.mapper.FileUploadMapper;
import org.tangdao.modules.file.model.domain.FileUpload;
import org.tangdao.modules.file.model.vo.FileUploadParams;
import org.tangdao.modules.file.service.IFileUploadService;

/** 
 * @ClassName: FileUpload
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author RuYang
 * @date 2019/03/07
 *  
 */
 
@Service
@Transactional(readOnly = true)
public class FileUploadServiceImpl extends CrudServiceImpl<FileUploadMapper, FileUpload> implements IFileUploadService{

	@Autowired	
    private FileUploadServiceExtend fileUploadServiceExtend;
	
	@Override
	public FileUploadServiceExtend getFileUploadServiceExtend() {	
        return this.fileUploadServiceExtend;	
    }
	
	public List<FileUpload> findList(FileUpload fileUpload){
		return this.baseMapper.findList(fileUpload);
	}
	
	public void compressImage(FileUploadParams params, File imageFile) {	
        if (!"image".equals(params.getUploadType())) {	
            return;	
        }	
    }	
}
